#pragma once


BEGIN_NAMESPACE_OXGE




class oglDisplayList : public oxgeClass <oglDisplayList>
{

public:
	oglDisplayList();
	~oglDisplayList();

	void start();
	void end();
	void Apply();

protected:
	GLint m_dspListID;

};


class oglDisplayListResource : public oxgeClass<oglDisplayListResource>
{
public:

	int getCount()const{ return (int)m_vDisplayLists.size(); }
	oglDisplayList* GetDisplayList(int idx){ 
		if(idx < getCount())
			return m_vDisplayLists[idx].get(); 
		return NULL;
	}
	
	std::vector<oglDisplayList::RefPtr> m_vDisplayLists; 

};


END_NAMESPACE_OXGE